#ifndef HUD_ITEM_CPU_H
#define HUD_ITEM_CPU_H

#include "consts.h"
#include "cash.h"
#include "graphics_text_item.h"

class HUD_ITEM_CPU :public QObject, public QGraphicsItemGroup
{
    Q_OBJECT
private:
    QTimeLine *tl_anim_items;
    QTimeLine *tl_anim_icon;

    GRAPHICS_TEXT_ITEM *item_score;

    int score_points;

    CASH *cash;

public:
    HUD_ITEM_CPU(CASH *cash);

    QPainterPath shape() const;
    QRectF boundingRect() const;

    void init();
    void init_borders();
    void init_icon();
    void init_score();

    void show_hud();
    void hide_hud();

    void add_score(int value);

    ~HUD_ITEM_CPU();

};

#endif // HUD_ITEM_CPU_H
